package com.zrx.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户表(User)表实体类
 *
 * @author makejava
 * @since 2022-09-16 16:10:17
 */

@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user")
@ApiModel(value = "", description = "")
public class User  {
    //主键
    @TableId
    private Long id;

   
    @ApiModelProperty(value = " 用户名")
    private String userName;
   
    @ApiModelProperty(value = " 昵称")
    private String nickName;
   
    @ApiModelProperty(value = " 密码")
    private String password;
   
    @ApiModelProperty(value = " 用户类型：0代表普通用户，1代表管理员")
    private String type;
   
    @ApiModelProperty(value = " 账号状态（0正常 1停用）")
    private String status;
   
    @ApiModelProperty(value = " 邮箱")
    private String email;
   
    @ApiModelProperty(value = " 手机号")
    private String phonenumber;
   
    @ApiModelProperty(value = " 用户性别（0男，1女，2未知）")
    private String sex;
   
    @ApiModelProperty(value = " 头像")
    private String avatar;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
   
    @ApiModelProperty(value = " 删除标志（0代表未删除，1代表已删除）")
    private Integer delFlag;

    //关联角色id数组，非user表字段
    @TableField(exist = false)
    private Long[] roleIds;

}

